Part Number Hot Search : 
2SC22 UM0101 26DF041 A1205 MA745 DS1511Y UN6121 CX201
Product Description
Full Text Search
 

To Download 101-0412 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  intellicom models op6600 and op6700 user?s manual 019?0078 ? 090529?j
intellicom (op6600/op6700) digi international inc. www.rabbit.com intellicom user?s manual part number 019-0078 ? 090529?j ? printed in u.s.a. ?2000?2009 digi international inc. ? all rights reserved. digi international reserves the right to make changes and improvements to its products without providing notice. trademarks rabbit and dynamic c are registered trademarks of digi international inc. rabbit 2000 and rabbitcore are trademarks of digi international inc. no part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permission of digi international. permission is granted to make one or more copies as long as the copyright page contained therein is included. these copies of the manuals may not be let or sold for any reason without the express written permission of digi international. the latest revision of this manual is available on the rabbit web site, www.rabbit.com , for free, unregistered download.
user?s manual t able of c ontents chapter 1. introduction 1 1.1 features .................................................................................................................. ...............................1 1.2 development and evaluation tools.......................................................................................... ............3 1.2.1 tool kit ................................................................................................................ .........................3 1.2.2 software ................................................................................................................ ........................3 1.3 ce compliance ............................................................................................................. ........................4 1.3.1 design guidelines ....................................................................................................... ..................5 1.3.2 interfacing the intellicom to other devices............................................................................. .....5 chapter 2. getting started 7 2.1 power supply connections .................................................................................................. .................8 2.2 demonstration program on power-up ......................................................................................... ......10 2.3 programming cable connections ............................................................................................. ..........12 2.4 installing dynamic c ...................................................................................................... ....................13 2.5 starting dynamic c ........................................................................................................ ....................14 2.6 pong.c .................................................................................................................... ..........................15 2.7 where do i go from here? .................................................................................................. .............16 chapter 3. subsystems 17 3.1 intellicom subsystems ..................................................................................................... ...................18 3.1.1 digital inputs.......................................................................................................... .....................19 3.1.2 digital outputs......................................................................................................... ...................19 3.2 serial communication ...................................................................................................... ..................20 3.2.1 rs-232 .................................................................................................................. ......................23 3.2.2 rs-485 .................................................................................................................. ......................23 3.2.3 programming port ........................................................................................................ ...............26 3.3 programming cable ......................................................................................................... ...................27 3.3.1 changing between program mode and run mode ....................................................................27 3.4 memory.................................................................................................................... ...........................28 3.4.1 sram .................................................................................................................... .....................28 3.4.2 flash memory ............................................................................................................ .................28 3.4.3 dynamic c bios source files ............................................................................................. ......28 3.5 speaker................................................................................................................... .............................29 3.6 vacuum fluorescent display................................................................................................ ..............29 3.7 other hardware............................................................................................................ .......................30 3.7.1 clock doubler ........................................................................................................... ..................30 3.7.2 spectrum spreader ....................................................................................................... ...............30 chapter 4. software 31 4.1 running dynamic c ......................................................................................................... ..................31 4.1.1 upgrading dynamic c ..................................................................................................... ...........33 4.1.1.1 patches and bug fixes................................................................................................. ....... 33 4.1.1.2 upgrades.............................................................................................................. ............... 33 4.2 sample programs ........................................................................................................... .....................34 4.2.1 general intellicom operation............................................................................................ ..........34 4.3 dynamic c libraries....................................................................................................... ....................36
intellicom (op6600/op6700) 4.4 intellicom function calls ................................................................................................. .................. 37 4.4.1 board initialization.................................................................................................... ................. 37 4.4.2 digital i/o............................................................................................................. ...................... 37 4.4.3 serial communication .................................................................................................... ............ 38 4.4.4 keypad controls......................................................................................................... ................ 39 4.4.5 display controls........................................................................................................ ................. 41 4.4.6 speaker controls ........................................................................................................ ................ 44 chapter 5. using the tcp/ip features 45 5.1 tcp/ip connections ........................................................................................................ ................... 45 5.2 running tcp/ip sample programs............................................................................................ ........ 47 5.3 how to set ip addresses in the sample programs............................................................................ .49 5.4 how to set up your computer?s ip address for direct connect .................................................... 50 5.5 run the pingme.c demo..................................................................................................... ............ 51 5.6 running more demo programs with a direct connection ............................................................... 51 5.7 where do i go from here? .................................................................................................. ............. 52 appendix a. intellicom specifications 53 a.1 electrical and mechanical specifications.................................................................................. ........ 54 a.2 conformal coating ......................................................................................................... ................... 56 a.3 jumper configurations ..................................................................................................... ................. 57 appendix b. keypad and plastic enclosure 59 b.1 keypad insert............................................................................................................. ........................ 60 b.2 plastic enclosure......................................................................................................... ....................... 62 b.2.1 assembling intellicom enclosure......................................................................................... ..... 64 b.2.1.1 custom mounting in an opening .................................................................................... 64 b.2.1.2 supplied outer casing ................................................................................................. ..... 65 appendix c. power management 67 c.1 power supplies ............................................................................................................ ...................... 67 c.2 batteries and external battery connections................................................................................ ...... 68 c.2.1 battery-backup circuit .................................................................................................. ............ 68 c.2.2 power to vram switch .................................................................................................... ........ 69 c.2.3 reset generator......................................................................................................... ................. 70 c.2.4 replacing the backup-battery board ...................................................................................... .. 70 c.3 chip select circuit....................................................................................................... ...................... 71 appendix d. running sample programs 73 d.1 connecting demonstration board ............................................................................................ ......... 74 d.2 running sample program demobrd1.c....................................................................................... 75 d.2.1 single-stepping ......................................................................................................... ................ 76 d.2.1.1 watch expression ...................................................................................................... ....... 76 d.2.1.2 break point ........................................................................................................... ............ 76 d.2.1.3 editing the program ................................................................................................... ....... 77 d.2.1.4 watching variables dynamically..................................................................................... 77 d.2.1.5 summary of features ................................................................................................... ..... 77 d.2.2 cooperative multitasking ................................................................................................ .......... 78 d.2.3 advantages of cooperative multitasking .................................................................................. 80 index 81 schematics 85
user?s manual 1 1. i ntroduction the intellicom intell igent terminal interface is a high-perfor- mance, c-programmable terminal that offers built-in i/o and ethernet connectivity. a rabbit ? 2000 microprocessor operating at 18.5 mhz provides fast data processing. 1.1 features ? c-programmable to create a custom user interface  4 protected logic-level digital inputs  4 protected sinking digital outputs  high-visibility backlit 4 20 lcd  10base-t ethernet interface  tcp/ip capability  rs-232 and rs-485 serial ports  128k sram and 256k?512k flash eprom  self-healing lens is scratch, impact, and abrasion-resistant  real-time clock  watchdog supervisor  voltage regulator  backup battery  can be programmed to emulate a serial terminal  splash-resistant when panel-mounted using the supplied gasket  can be wall-mounted or panel-mounted appendix a provides detailed specifications for the intellicom.
2 intellicom (op6600/op6700) two versions of the intellicom are available. their standard features are summarized in table 1. both models are available with a vacuum fluorescent display instead of the lcd. visit our web site for up-to-date information about add itional add-ons and features as they become available. the web site also has the latest revision of this user?s manual. table 1. intellicom series features model features op6600 standard terminal without ethernet interface and only 256k flash eprom. op6700 full-featured terminal with ethernet interface and 512k flash eprom.
user?s manual 3 1.2 development and evaluation tools 1.2.1 tool kit the tool kit has the essentials that you n eed to understand and program your own rabbit- based display unit. the items in the tool kit and their use are as follows:  intellicom getting started instructions.  dynamic c cd-rom, with complete product documentation on disk.  demonstration board. the demonstration board includes pushbutton switches and leds, and can be connected to the intellic om board. programs that run on the demon- stration board can be used to flash the leds and otherwise demonstrate the capabilities of the intellicom terminal.  programming cable. the programming cable is used to connect your pc serial port to the intellicom to write and debug c programs that run on the intellicom board.  wire assembly to connect intelli com board to demonstration board.  screwdriver.  universal ac adapter (includes canada/j apan/u.s., australia/n.z., u.k., and euro- pean style plugs). the ac adapter is used to power the intellicom board. a power supply of 12 v at up to 500 ma is recommended. the intellicom can also be powered from any dc voltage source between 9.0 v and 40 v. 1.2.2 software the intellicom is programmed using rabbit?s dynamic c. a compatible version is included on the tool kit cd-rom. dynamic c v. 9.60 includes the popular c/os-ii real-time oper- ating system, point-to-point protocol (ppp), fat file system, rabbitw eb, and other select libraries that were previously sold as individual dynamic c modules. rabbit also offers for purchase the rabbit em bedded security pack featuring the secure sockets layer (ssl) and a specific advanced encryption standard (aes) library. in addi- tion to the web-based technical support incl uded at no extra charge, a one-year telephone- based technical support subscription is also av ailable for purchase. visit our web site at www.rabbit.com for further information and complete documentation, or contact your rabbit sales representative or authorized distributor.
4 intellicom (op6600/op6700) 1.3 ce compliance equipment is generally divided into two classes. these limits apply over the range of 30?230 mhz. the limits are 7 db higher for frequencies above 230 mhz. although the test range goes to 1 ghz, the emissions from rabbit-based systems at frequencies above 300 mhz are ge nerally well below background noise levels. the op6700 operator interface has been tested and was found to be in conformity with the following applicable immunity and emission stan- dards. the op6600 operator interface is also ce qualified as it is a sub- version of the op6700 operator interface. boards that are ce-compli- ant have the ce mark. note: earlier versions of the intellicom sold before 2003 that do not have the ce mark are not ce-complaint. immunity the intellicom series of operator interf aces meets the following en55024/1998 immunity standards.  en61000-4-2 (esd)  en61000-4-3 (radiated immunity)  en61000-4-4 (eft)  en61000-4-6 (conducted immunity) additional shielding or filtering may be re quired for a heavy industrial environment. emissions the intellicom series of operator interfaces meets the following emission standards emis- sion standards with the rabbit 2000 spectrum spreader turned on and set to the normal mode. the spectrum spreader is only availa ble with rev. c or higher of the rabbit 2000 microprocessor. this microprocessor is used on the intellicom operator interfaces that carry the ce mark.  en55022:1998 class b  fcc part 15 class b your results may vary, depending on your appli cation, so additional shielding or filtering may be needed to maintain the class b emission qualification. class a class b digital equipment meant for light industrial use digital equipment meant for home use less restrictive emissions requirement: less than 40 db v/m at 10 m (40 db relative to 1 v/m) or 300 v/m more restrictive emissions requirement: 30 db v/m at 10 m or 100 v/m
user?s manual 5 1.3.1 design guidelines note the following requirements for incorpora ting the intellicom series of operator inter- faces into your application to comply with ce requirements. general  the power supply provided with the tool kit is for development purposes only. it is the customer?s responsibility to provide a ce-c ompliant power supply for the end-product application.  when connecting the intellicom to outdoor cables, the customer is responsible for pro- viding ce-approved surge/lighting protection.  rabbit recommends placing digital i/o or analog cables that are 3 m or longer in a metal conduit to assist in maintaining ce compliance and to conform to good cable design practices.  when installing or servicing the intellicom, it is the responsibility of the end-user to use proper esd precautions to prevent esd damage to the intellicom. safety  all inputs and outputs to and from the inte llicom must not be connected to voltages exceeding selv levels (42.4 v ac peak, or 60 v dc).  the lithium backup battery circuit on the inte llicom has been designed to protect the battery from hazardous conditions such as reverse charging and excessive current flows. do not disable the safety features of the design. 1.3.2 interfacing the intellicom to other devices since the intellicom operator interfaces are de signed to be connected to other devices, good emc practices should be followed to ensu re compliance. ce compliance is ulti- mately the responsibility of the integrator . additional information, tips, and technical assistance are available from your authorized rabbit distributor, and are also available on our web site at www.rabbit.com .
6 intellicom (op6600/op6700)
user?s manual 7 2. g etting s tarted chapter 2 explains how to connect the power supply to the intel- licom board and how to connect the programming cable from the intellicom board to your pc. once you run a sample pro- gram to demonstrate that you have connected everything cor- rectly, you will be ready to go on and finish developing your system.
8 intellicom (op6600/op6700) 2.1 power supply connections 1. remove and set aside outer casing and rubber gasket. before proceeding, remove and set aside th e outer casing, rubber gasket, screws, and panel-mount brackets included with your intellicom unit, shown in figure 1. the outer casing and rubber gasket are not attached to th e front panel when the intellicom is shipped. take care not to damage the rubber gasket. figure 1. remove and set aside outer casing and accessory parts 2. position intellicom board. the intellicom board is attached to the back of the front panel. turn the front panel assem- bly over so that the intellicom board is facing up as shown in figure 2. figure 2. power supply connections  
 

 
 
          
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
  &' (&)* +,-./ 01-.2  3                    4+56.7 58&958:5.&.*4 ),&;)-'50*4;-2+*;< '-==&,&.*;<5.5;'&, >&,4-5.4? &85>&4;5*95>&,@ -.4&,**)1-.*54;5* .)::;02-.*5:;)9&   

user?s manual 9 connect the positive lead (indicated with red heat-shrink tubing on the ac adapter included with the tool kit) to the pwr conne ctor on header j7 on the intellicom board and connect the negative lead to gnd on header j7 as shown in figure 2 and figure 3. caution: be careful to hook up the positive and negative power leads exactly as described. otherwise, the intellicom board will not function. 4. apply power. plug in the ac adapter. the intellicom board is now ready to be used. note: a hardware reset is accomplished by unplugging the ac adapter, then plug- ging it back in. 3. connect power supply to the intellicom board first, prepare the ac adapter for the country where it will be used by selecting the plug. the intellicom tool kit presently includes can- ada/japan/u.s., australia/n.z., u.k., and euro- pean style plugs. snap in the top of the plug assembly into the slot at the top of the ac adapter as shown in figure 2, then press down on the spring-loaded clip below the plug assembly to allow the plug assembly to click into place. figure 3. power supply connections? detailed view         3 &' (&)* +,-./ 01-.2
10 intellicom (op6600/op6700) 2.2 demonstration program on power-up the following sequence of messages will be displayed on the lcd when power is first applied to the intellicom board. note that the programming cable must not be connected.
     !" #$$$ 

 
 
  %%%%%%%%%%%% &    ''''''''''''   (((((((((((( )*+"  ,, (((((((((((( ------------ ,+  ------------ ............    / ............    #0  12
user?s manual 11 the contrast, backlight, speaker volume, and cursor positions will change automatically through the demonstration. then there is an opportunity for you to vary these settings by responding to prompts on the lcd. this demonstration will be replaced by a new program when the programming cable is attached and the new program is compiled a nd run. the demonstration is available for future reference in the dynamic c samples directory as icomdemo.c . 1. choose which feature (lcd con- trast, backlight on/off, speaker, or cursor) you wish to change. 2. press [ 1 ] to select the contrast adjustment demonstration. 3. press [ 1 ] to increase contrast, press [ 6 ] to decrease contrast, or press [ enter ] to get to choose another feature. 4. press [ 2 ] to select the backlight demonstration. press [ 2 ] to toggle backlight on or off, or press [ enter ] to get to choose another feature. 5. press [ 3 ] to select the speaker dem- onstration. press [ 1 ]?[ 4 ] to set the desired speaker volume ([ 1 ] is min, [ 4 ] is max), press [ 5 ] or [ 0 ] to increase or decrease frequency, or press [ enter ] to get to choose another feature. the volume and frequency are displayed. 6. press [ 4 ] to select the cursor dem- onstration. press keys as shown to move cursor, or press [ enter ] to get to choose another feature.  345   365)*+"  375,+  385   9*+ ,*"2  345 )*+#  3:5  3 5 " "  365  3 5 ; - 345<385 =>- 3?53@5 ; / =>/ 385 3a5 +1 3@5 3b5  3 5
12 intellicom (op6600/op6700) 2.3 programming cable connections 1. connect the programming cable to the intellicom board. connect the 10-pin prog connector of the programming cable to header j4 on the intelli- com board as shown in figure 4. be sure to orient the red edge of the cable towards pin 1 of the connector. (do not use the diag connector, which is used for a normal serial connection.) note: never disconnect the programming cable by pulling on the ribbon cable. carefully pull on the connector to remove it from the header. note: some pcs now come equipped only with a usb port. it may be possible to use an rs-232/usb converter (part no. 20-151-0178) with the programming cable supplied with the intellicom tool kit. note that not all rs-232/usb converters work with dynamic c. figure 4. programming cable connections note: be sure to use the programming cable (part no. 101-0513) supplied with the intellicom tool kit?the programming cable has red shrink wrap around the rs-232 converter section located in the middle of the cable. programming cables from other rabbit kits are not designed to work with the intellicom. 2. apply power. reset the intellicom by unplugging the ac adapter, then plugging it back in. the intelli- com board is now ready to be used. note: a hardware reset is accomplished by unplugging the ac adapter, then plug- ging it back in. to power down the intellicom, unplug the ac adapter. you should disconnect power before making any circuit adjustments or changing any connections to the board.         
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                   &' (&)* +,-./ 01-.2  3 5;5,&'4-'& '56. 5   :5,*  ! #
user?s manual 13 2.4 installing dynamic c if you have not yet installed dynamic c, do so now by inserting the dynamic c cd from the intellicom tool kit in your pc?s cd-rom drive. the cd will auto-install unless you have disabled auto-install on your pc. if the cd does not auto-install, click start > run from the windows start button and browse for the dynamic c setup.exe file on your cd drive. click ok to begin the installation once you have selected the setup.exe file. the online documentation is installed along with dynamic c, and an icon for the docu- mentation menu is placed on the workstation?s desktop. double-click this icon to reach the menu. if the icon is missing, create a new desktop icon that points to default.htm in the docs folder, found in the dynamic c installation folder. the latest versions of all documents are al ways available for free, unregistered download from our web sites as well. the dynamic c user?s manual provides detailed instructions for the installation of dynamic c and any future upgrades. note: if you have an earlier version of dynamic c already installed, the default instal- lation of the later version will be in a different folder, and a separate icon will appear on your desktop.
14 intellicom (op6600/op6700) 2.5 starting dynamic c once the intellicom is connected to your pc and to a power source, start dynamic c by double- clicking on the dynamic c icon on your desktop or in your start menu . if you are using a usb port to connect your computer to the intellicom, choose options > project options and select ?use usb to serial converter.? click ok . dynamic c defaults to using the serial port on your pc that you specified during installa- tion. if the port setting is correct, dynamic c should detect the intellicom and go through a sequence of steps to cold-boot the intellicom and to compile the bios. (some versions of dynamic c will not do the initial bios compile and load until the first time you com- pile a program.) if you receive the message no rabbit processor detected , the programming cable may be connected to the wrong com port, a connection may be faulty, or the target system may not be powered up. first, check both ends of the programming cable to ensure that it is firmly plugged into the pc and the programming port with the marked (colored) edge of the programming cable toward s pin 1 of the programming header. if there are no faults with the hardware, select a different com port within dynamic c. from the options menu, select communications . select another com port from the list, then click ok. press to force dynamic c to reco mpile the bios. if dynamic c still reports it is unable to locate the target system, repeat the above steps until you locate the active com port. you should receive a bios compiled successfully message once this step is completed successfully. if dynamic c appears to compile the bios successfully, but you then receive a communi- cation error message when you compile and load a sample program, it is possible that your pc cannot handle the higher program-loading baud rate. try changing the maximum download rate to a slower baud rate as follows.  locate the serial options dialog in the dynamic c options > communications menu. select a slower max download baud rate. if a program compiles and loads, but then loses target communication before you can begin debugging, it is possible that your pc cannot handle the default debugging baud rate. try lowering the debugging baud rate as follows.  locate the serial options dialog in the dynamic c options > communications menu. choose a lower debug baud rate.
user?s manual 15 2.6 pong.c you are now ready to test your set-up by running a sample program. find the file pong.c , which is in the dynamic c samples folder. to run the program, open it with the file menu (if it is not still open), compile it using the compile menu, and then run it by selecting run in the run menu. the stdio window will open and will dis- play a small square bouncing around in a box. this program does not test the serial ports, th e i/o, or the tcp/ip part of the board, but does ensure that the board is basically f unctional. the sample program in section 5.5, ?run the pingme.c demo,? tests th e tcp/ip portion of the board.
16 intellicom (op6600/op6700) 2.7 where do i go from here? note: if you purchased your intellicom through a distributor or rabbit partner, contact the distributor or partner first for technical support. if there are any problems at this point:  use the dynamic c help menu to get further assistance with dynamic c.  check the rabbit technical bulletin board and forums at www.rabbit.com/support/bb/ and at www.rabbit.com/forums/ .  use the technical support e-mail form at www.rabbit.com/support/ . if the sample program ran fine, you are now ready to go on to explore other intellicom fea- tures and develop your own applications. chapter 3, ?subsystems,? provides a description of the intellicom board?s features, chapter 4, ?software,? describe s the dynamic c software libr aries and introduces some sample programs, and chapter 5, ?using the tcp/ip features,? explains the tcp/ip fea- tures.
user?s manual 17 3. s ubsystems chapter 3 describes the principal subsystems for the intellicom. ? intellicom subsystems ? serial communication ? memory ? speaker ? other hardware
18 intellicom (op6600/op6700) 3.1 intellicom subsystems figure 5 shows the rabbit-based subsystems designed into the intellicom. figure 5. intellicom rabbit-based subsystems the intellicom board has 15 pins on header j7, one rj-12 jack for rs-232 or rs-485 serial communication, and one ethernet ja ck (op6700 only). the pinouts are shown in figure 6. figure 6. intellicom i/o pinout rj-45 pinouts are sometimes numbered opposite to the way shown in figure 6. regardless of the numbering convention followed, the pin positions relative to the spring tab position (located at the bottom of the rj-45 jack in figure 6) are always absolute, and the rj-45 connector will work properly with off-the-shelf ethernet cables.          
 3  3    3  @ 3   3 #!  #! a     !" # $ % & '() $*"+ ,  -()$*  *"!. "!!    / $0 &))&  3     3 3    @ 3   3 !  !  !  ! # # # # " "  3                      (   ? b c ? b c3 ? b c ? b c3                     (   ? b c ? b c3 ? b c ? b c3    $!% ? ? ? ?3 ? ?    $!% ? ? ? " ? " ? ?                     (   ? b c ? b c3 ? b c ? b c3    $!% ? ? ? " ? " ? ?    !"#$%!&'  !% &(%!&'  !% ()!&'  !% !  !  !  ! # # # #   " "   !  !  !  ! # # # # " "  " "   *
+ ( , -.
/  804*1&-.4*);;&'=5, 4-2.);45.?  804*1&,&85>&'=5, 4-2.);45.?  804*1&,&85>&'=5, 4-2.);45.?   
user?s manual 19 3.1.1 digital inputs pins 8?11 on header j7 have the four digital inputs in0?in3. each of the four digital 0 v to 5 v inputs is protected over a range of ?36 v to +36 v. the intellicom is factory-config- ured for the digital inputs to be pulled up to +5 v, but the digital inputs can also be pulled down by moving the surface-mounted jumper at jp4. the jumper settings and the location of jp4 are shown in figure 7. figure 7. surface-mounted jumper configurations for selecting pullup/pulldown on the digital inputs 3.1.2 digital outputs pins 12?15 on header j7 have the four di gital outputs out0?out3. each of the four open-collector digital outputs can sink up to 200 ma at 40 v dc.         
                                                                                               ! ! ! ! # # # # " "     
-'0'
) /     1  1         4+56.7 58&958:5.&.*4 ),&;)-'50*4;-2+*;< '-==&,&.*;<5.5;'&, >&,4-5.4? $!%         
20 intellicom (op6600/op6700) 3.2 serial communication in the factory-default configuration, the intellicom has one rs-232 (3-wire) serial channel, one rs-485 serial channel, and one synchronous cmos serial channel. the intellicom may be configured for 5-wire rs-232 or two 3-wi re rs-232 channels. the exact configuration instructions depend on the version of intellicom board you have. this information is etched on the bottom side of the printed ci rcuit board, or you can readily determine your version by examining the diagrams below to find the one that matches your board. version 175-0188 rev. a & b the rs-232 transceiver may be used as a 5-wi re rs-232 channel or as two 3-wire rs-232 channels at the expense of the rs-485 channel by adding 0 ? surface-mounted resistors at r61 and r62 as shown in figure 8(a). the rs-485 chip (u10) and the associated bias and termination resistors (r58, r59, and r60) show n in figure 9(a) must be removed when configuring the intellicom for either one 5-wire rs-232 or two 3-wire rs-232. figure 8(a). intellicom rs-232/rs-485 serial communication options table 2(a) summarizes the options. note that the parameters in the sermode software function call must also be set to matc h the hardware configuration being used. table 2(a). serial communication configurations (version 175-0188 rev. a & b) item one 3-wire rs-232 & rs-485 two 3-wire rs-232 one 5-wire rs-232 r58?r60 in out out r61?r62 out in in u10 in out out j7-3 & j5-3 rs-485+ txb txb j7-4 & j5-4 rs-485? rxb rxb j7-6 txc txc rts j7-7 rxc rxc cts                           
                                   !   " "                                                     $!% ! ! # # # # ! -  - 2     '
 '()    

        1!1## &>?d                    e c fdg ce fg 3e c fdg ce fg       e c fg 3e c fg *
+ ( , -.
/ 
user?s manual 21 version 175-0188 rev. c the rs-232 transceiver may be used as a 5-wi re rs-232 channel or as two 3-wire rs-232 channels at the expense of the rs-485 channel, which is connected through 0 ? surface- mounted resistors at r82 and r83 as shown in figure 8(b). r82 and r83, shown in figure 8(b), must be removed when configuring the intellicom for either one 5-wire rs-232 or two 3-wire rs-232. u10 and the associated bias and terminati on resistors (r58, r59, and r60) must also be removed, but r82 and r83 are left installed, if you wish the txb and rxb rs-232 signals to be available on header j5. figure 8(b). intellicom rs-232/rs-485 serial communication options table 2(b) summarizes the options. note that the parameters in the sermode software function call must also be set to matc h the hardware configuration being used. table 2(b). serial communication configurations (version 175-0188 rev. c) item one 3-wire rs-232 & rs-485 two 3-wire rs-232 one 5-wire rs-232 rs-232 on j5 r58?r60 in ? ? out r61?r62 out in in in r82?r83 in out out in u10 in in in out j7-3 rs-485+ txb txb txb j7-4 rs-485? rxb rxb rxb j7-6 txc txc rts txc or rts j7-7 rxc rxc cts rxc or cts j5-3 rs-485+ ? ? txb j5-4 rs-485? ? ? rxb                           
                                   !   " "                                                    $!% ! ! # # # # ! -  - 2  '
 '() 1!1## &>?        

                             

 ce c5. 5 5.                                *
+ ( , -.
/ e c fg ce fg 3e c fg ce fg e c fg 3e c fg 
22 intellicom (op6600/op6700) version 175-0206 the rs-232 transceiver may be used as a 5-wi re rs-232 channel or as two 3-wire rs-232 channels at the expense of the rs-485 channel, which is connected through jumpers across header jp7 as shown in figure 8(c). the jumper configurations are shown in figure 8(c). figure 8(c). intellicom rs-232/rs-485 serial communication options table 2(c) summarizes the options. note that the parameters in the sermode software function call must also be set to matc h the hardware configuration being used. table 2(c). serial communication configurations (version 175-0206) item one 3-wire rs-232 & rs-485 two 3-wire rs-232 one 5-wire rs-232 rs-232 on j5 header jp7 3?5 4?6 1?3 2?4 1?3 2?4 1?5 2?6 header jp6 1?2 5?6 ? ? no jumpers installed u10 in in in out j7-3 rs-485+ txb txb ? j7-4 rs-485? rxb rxb ? j7-6 txc txc rts txc or rts j7-7 rxc rxc cts rxc or cts j5-3 rs-485+ ? ? txb j5-4 rs-485? ? ? rxb         
                                                                                               ! ! ! ! # # # # " "     $!%         1!                         '
 '()     

  5  5.   e c fg ce fg 3e c fg ce fg e c fg 3e c fg                       
user?s manual 23 3.2.1 rs-232 the intellicom?s rs-232 serial channel is co nnected to an rs-232 transceiver, u11. u11 provides the voltage output, slew rate, and i nput voltage immunity required to meet the rs-232 serial communication protocol. basically , the chip translates the rabbit 2000?s 0 v to +vcc signals to rs-232 signal levels. note that the polarity is reversed in an rs-232 circuit so that +5 v is output as approximate ly -10 v and 0 v is output as approximately +10 v. u11 also provides the proper line loading for reliable communication. the maximum baud rate is 115,200 bps. rs-232 can be used effectively at this baud rate for distances up to 15 m. 3.2.2 rs-485 the intellicom has one rs-485 serial cha nnel, which is connected to the rabbit 2000 serial port b through u10, an rs-485 transceiver. the chip?s slew rate limiters provide for a maximum baud rate of 250,000 bps, which a llows for a network of up to 1200 m (or 4000 ft). the half-duplex communication uses the rabbit 2000?s pc0 pin to control the data enable on the communication line. the rs-485 signals are available on pins 3 and 4 of header j7, and on j5, the rj-12 jack. the intellicom can be used in an rs-485 multidrop network. connect the 485+ to 485+ and 485? to 485? using single twisted-pair wi res (nonstranded, tinned) as shown in figure 9. alternatively, the rs-485 multidrop network may be hooked up using cables with rj-12 plugs. note that the rj-12 jack has +raw_485 and gnd, which means that only one intellicom needs to be connected to an external power source via an ac adapter. when doing so, ensure that the ac adapter has sufficient capacity for the network ? each intel- licom unit nominally draws 100 ma at 24 vdc. caution: if you plan to connect a power supply to more than one intellicom unit in an rs-485 network using the rj-12 jacks, rework the rs-485 cables so they do not connect +raw_rs485 through the rj-12 jack to the boards in the network. note: the rs-485 port is available only in the factory default configuration. the rs-485 port will not be available when you select the configuration option for both 3-wire rs-232 ports or one 5-wire rs-232 port.
24 intellicom (op6600/op6700) figure 9. multidrop intellicom network  $!%                
                                                                                               ! ! ! ! # # # # " "      $!%                
                                                                                               ! ! ! ! # # # # " "      $!%                
                                                                                               ! ! ! ! # # # # " "     ,50.',&9588&.'&'   ! "
# $%  & '( $
user?s manual 25 the intellicom comes with a 220 ? termination resistor and two 680 ? bias resistors installed and enabled with jumpers across pins 1?2 and 5?6 on header jp6, as shown in figure 10. figure 10. rs-485 termination and bias resistors the bias and termination resistors in a multidrop network should only be enabled on both end nodes of the network. disable the termina tion and bias resistors on the intervening intellicom units in the network by removing both jumpers from header jp6. note that older versions of the intellicom do not have this jumper feature, and the surface-mounted bias and termination resistors shown in figure 10 have to be removed in networks contain- ing more than 10 intellicom units. *
+ ( , -.
/              3     

                
                                                       ! ! ! ! # # # # " " $!%         2
26 intellicom (op6600/op6700) 3.2.3 programming port the intellicom has a 10-pin programming head er labeled j4. the programming port uses the rabbit 2000?s serial port a for communication. the programming port uses the rabbit 2000?s serial port a for communication. dyna mic c uses the programming port to down- load and debug programs. the programming port is also used for the following operations.  cold-boot the rabbit 2000 on the intellicom after a reset.  remotely download and debug a program ove r an ethernet connection using the rabbitlink eg2110.  fast copy designated portions of flash me mory from one rabbit-based board (the master) to another (the slave) using the rabbit cloning board. alternate uses of the programming port all three clocked serial port a signals are available as  a synchronous serial port  an asynchronous serial port, with the cl ock line usable as a general cmos input the programming port may also be used as a serial port via the diag connector on the programming cable. in addition to serial port a, the rabb it 2000 startup-mode (smode0, smode1), status, and reset pins are available on the programming port header. the two startup mode pins determine what happens after a reset?the rabbit 2000 is either cold-booted or the program begins executing at address 0x0000. the status pin is used by dynamic c to determine whether a rabbit microprocessor is present. the status output has three different programmable functions: 1. it can be driven low on the first op code fetch cycle. 2. it can be driven low during an interrupt acknowledge cycle. 3. it can also serve as a general-purpose output. the /reset_in pin is an external input that is used to reset the rabbit 2000 and the intel- licom onboard peripheral circuits. refer to the rabbit 2000 microprocessor user?s manual for more information.
user?s manual 27 3.3 programming cable the programming cable is used to connect th e intellicom tprogramming port o a pc serial com port. the programming cable converts th e rs-232 voltage levels used by the pc serial port to the voltage levels used by the rabbit 2000. when the prog connector on the programming cable is connected to the intellicom programming port, programs can be downloade d and debugged over the serial interface between the pc and the rabbit 2000. the diag connector of the programming cable may be used on header j4 of the intellicom with the intellicom operating in the run mode. this allows the programming port to be used as a regular serial port. 3.3.1 changing between program mode and run mode the intellicom is automatically in program mode when the prog connector on the pro- gramming cable is attached, and is automa tically in run mode when no programming cable is attached. when the rabbit 2000 is re set, the operating mode is determined by the status of the smode pins. when the programming cable?s prog connector is attached, the smode pins are pulled high, placing the rabbit 2000 in the program mode. when the programming cable?s prog connector is not attached, the smode pins are pulled low, causing the rabbit 2000 to operate in the run mode. figure 11. intellicom program mode and run mode set-up a program ?runs? in either mode, but can only be downloaded and debugged when the op6800 is in the program mode. refer to the rabbit 2000 microprocessor user?s manual for more information on the pro- gramming port and the programming cable.           
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                           
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                   5;5,&'4-'& '56. 5   :5,* 3 2 (0
(  

( )3  &&)4 )#

""*
5),& &!&))&+ /)(  3 #  !
28 intellicom (op6600/op6700) 3.4 memory 3.4.1 sram the intellicom is designed to accept 32k to 512k of sram packaged in an soic case. the standard models come with 128k of sram. figure 12 shows the locations and the jumper settings for the jumpers at jp1 used to set the sram size. the ?jumpers? are 0 ? surface-mounted resistors. figure 12. intellicom jumper settings for sram and flash eprom size 3.4.2 flash memory the intellicom is also designed to accept 128k to 512k of flash memory packaged in a tsop case. the intellicom op6700 comes with two 256k flash memory chips, and the intellicom op6600 comes with one 256k flash memory. figure 12 shows the locations and the jumper settings for the jumpers at jp2 and jp3 used to set the flash memory size. the ?jumpers? are 0 ? surface-mounted resistors. note: rabbit recommends that any customer applications should not be constrained by the sector size of the flash eprom since it may be necessary to change the sector size in the future. a flash memory bank select jumper conf iguration option exists at jp5 with 0 ? surface- mounted resistors. this option, used in conjunc tion with some configur ation macros, allows dynamic c to compile two different co-resident programs for the upper and lower halves of the 256k flash in such a way that both programs start at logical address 0000. this is useful for applications that require a resident dow nload manager and a separate downloaded pro- gram. see technical note 218, implementing a serial download manager for a 256k flash , for details. 3.4.3 dynamic c bios source files the dynamic c bios source files handle diff erent standard ram and flash eprom sizes automatically.       (+ 1  (+     1    (+*,+ 1 (+ *
32                                                                               "   "   
  
  1   67")!8 %4  1  1  !
- -,,..- %
)
" %-/  %   0 %
- 
12% '3
user?s manual 29 3.5 speaker the intellicom comes with a 35 ? speaker that is controlled through the dynamic c func- tion spkrout . both the volume and the frequency of the signal are set with this function call. the maximum average volume was measured to be 75 dba @ 30 cm (12 inches) from the speaker. figure 13 shows typical volume measurements for various frequencies with the speaker grille open and closed to maintain water resistance for the front mounting panel. figure 13. intellicom speaker sound pressure level 30 cm (12 inches) from speaker 3.6 vacuum fluorescent display a vacuum fluorescent display (vfd) may be substituted for the lcd by removing r22 and substituting a vfd for lcd. note that a vfd has no backlighting and no contrast control. note: contact your rabbit sales repre- sentative for information on ordering this option from the factory. the instructions for accessing the display are similar to those for accessing the keypad insert in appendix b, ?keypad and plastic enclosure.? figure 14. location of display control resistor, r22 40 50 60 70 80 90 100 110 0 2000 4000 6000 8000 10000 12000 14000 frequency (hz) sound pressure level (dba) grille o p en grille closed 4 56 - 25                                               "   "     
  
 
30 intellicom (op6600/op6700) 3.7 other hardware 3.7.1 clock doubler the intellicom uses an 18.432 mhz crystal, and so its clock doubler is disabled automati- cally in the bios. 3.7.2 spectrum spreader intellicom boards that carry the ce mark ha ve a rabbit 2000 microprocessor that features a spectrum spreader, which helps to mitigate emi problems. by default, the spectrum spreader is on automatically for intellicom boards that carry the ce mark when used with dynamic c 7.32 or later ve rsions, but the spectrum spreader may also be turned off or set to a stronger setting. the means for doing so is through a simple global macro as shown below. there is no spectrum spreader functionality for intellicom boards that do not carry the ce mark or when using any intellicom with a version of dynamic c prior to 7.30. 1. select the ?defines? tab from the dynamic c options > project options menu. 2. normal spreading is the default, and usually no entry is needed. if you need to specify normal spreading, add the line enable_spreader=1 for strong spreading, add the line enable_spreader=2 to disable the spectrum spreader, add the line enable_spreader=0 note: the strong spectrum-spreading setting is not needed for the intellicom. 3. click ok to save the macro. the spectrum spreader will now remain off whenever you are in the project file where you defined the macro.
user?s manual 31 4. s oftware dynamic c is an integrated de velopment system for writing embedded software. it runs on an ibm-compatible pc and is designed for use with controllers based on the rabbit ? micro- processor. chapter 4 provides the libraries, function calls, and sample pro- grams related to the intellicom. 4.1 running dynamic c you have a choice of doing your software devel opment in the flash memory or in the static ram included on the intellicom. the flash memory and sram options are selected with the options > compiler menu. the advantage of working in ram is to save wear on the flash memory, which is limited to about 100,000 write cycles. the disadvantage is that the code and data might not both fit in ram. note: an application can be developed in ram, but cannot run standalone from ram after the programming cable is disconnected. all standalone applications can only run from flash memory. note: do not depend on the flash memory sector size or type. due to the volatility of the flash memory market, the intellicom and dynamic c were designed to accommo- date flash devices with various sector sizes. developing software with dynamic c is simple . users can write, compile, and test c and assembly code without leaving the dyna mic c development environment. debugging occurs while the application runs on the target . alternatively, users can compile a program to a binary image file for later loadi ng. dynamic c runs on pcs under windows 95 or later. programs can be downloaded at baud rates of up to 230,000 bps after the program compiles.
32 intellicom (op6600/op6700) dynamic c has a number of standard features.  full-feature source and/or assembly-level debugger, no in-circuit emulator required.  royalty-free tcp/ip stack with sour ce code and most common protocols.  hundreds of functions in source-c ode libraries and sample programs: x exceptionally fast support for floating-point arithmetic and transcendental functions. x rs-232 and rs-485 serial communication. x analog and digital i/o drivers. x i 2 c, spi, gps, file system. x lcd display and keypad drivers.  powerful language extensions for c ooperative or preemptive multitasking  loader utility program to load binary images into rabbit targets in the absence of dynamic c.  provision for customers to create their own s ource code libraries and augment on-line help by creating ?function description? bloc k comments using a special format for library functions.  standard debugging features: x breakpoints?set breakpoints that can disable interrupts. x single-stepping?step into or over functions at a source or machine code level, c/os-ii aware. x code disassembly?the disassembly window disp lays addresses, opcodes, mnemonics, and machine cycle times. switch between debugging at machine-code level and source-code level by simply opening or closing the disassembly window. x watch expressions?watch expressions are compiled when defined, so complex expressions including function calls may be placed into watch expressions. watch expressions can be updated with or without stopping program execution. x register window?all processor registers and flags are displayed. the contents of general registers may be modified in the window by the user. x stack window?shows the contents of the top of the stack. x hex memory dump?displays the contents of memory at any address. x stdio window? printf outputs to this window and keyboard input on the host pc can be detected for debugging purposes. printf output may also be sent to a serial port or file.
user?s manual 33 4.1.1 upgrading dynamic c 4.1.1.1 patches and bug fixes dynamic c patches that focus on bug fixes are available from time to time. check the web site www.rabbit.com/support/ for the latest patches, workarounds, and bug fixes. the default installation of a patch or bug fix is to install the file in a directory (folder) dif- ferent from that of the original dynamic c installation. rabbit recommends using a differ- ent directory so that you can verify the ope ration of the patch without overwriting the existing dynamic c installation. if you have made any changes to the bios or to libraries, or if you have programs in the old directory (folder), make these same changes to the bios or libraries in the new directory containing the patch. do not simply copy over an entire file since you may overwrite a bug fix. once you are sure the new patch works entirely to your satisfaction, you may retire the existing installation, but keep it available to handle legacy applications. 4.1.1.2 upgrades dynamic c software supplied with the tool k it is designed for use with the board it is included with, and is included at no extra ch arge. dynamic c is a complete software development system, but does not include all of dynamic c's features and upgrade path. these extra features include the popular c/os-ii real-time operating system, as well as ppp, advanced encryption standard (aes), and other select libraries. a one-year mainte- nance agreement for telephone tech support a nd an upgrade path for all new dynamic c releases is also available.
34 intellicom (op6600/op6700) 4.2 sample programs sample programs are provided in the dynamic c samples folder. the sample program pong.c demonstrates the output to the stdio window. the various directories in the samples folder contain specific sample program s that illustrate the use of the correspond- ing dynamic c libraries. the samples\icom and samples\tcpip folders provides sample programs specific to the intellicom board. each sample program has comments that describe the purpose and function of the program. follow the instructi ons at the beginning of the sample program. to run a sample program, open it with the file menu (if it is not still open), compile it using the compile menu, and then run it by selecting run in the run menu. the intellicom must be in program mode (see section 3.3, ?programming cable,?) and must be connected to a pc using the programming cable as described in section 2.3, ?programming cable con- nections.? more complete information on dynamic c is provided in the dynamic c user?s manual . 4.2.1 general intellicom operation  cofterma.c ?demonstrates cofunctions, the cofunc tion serial library, and using a serial ansi terminal such as hypertermi nal from an available pc com port connec- tion.  demobrd1.c ?flashes leds on demonstration board included in development kit. see appendix d for hookup instructions for the demonstration board.  demobrd2.c ?flashes leds on demonstration board included in development kit and illustrates the dynamic c runwatch function. see appendix d for hookup instructions for the demonstration board.  demobrd3.c ?flashes leds on demonstration board included in development kit and demonstrates the use of costatements . see appendix d for hookup instructions for the demonstration board.  httpdemo.c ?allows a web browser to view and change the state of the intellicom board. see appendix d for hookup instructions for the demonstration board.  icom232.c ?demonstrates a simple rs-232 loopback.  icom485.c ?demonstrates a simple rs-485 transmission from master to slave.  icom5wire.c ?demonstrates a 5-wire rs-232 loopback in an intellicom set up for 5- wire rs-232.  icomdemo.c ?demonstration program to illustrate intellicom features. this demon- stration program comes up when the intellicom is first powered up before new pro- grams are compiled and run.  icomio.c ?demonstrates how to turn the digital i/o on and off.  keylcd.c ?demonstrates use of lcd and keypad.
user?s manual 35  mboxdemo.c ?implements a web server that allows e-mail messages to be entered and then shown on the lcd display. see appendix d for hookup instructions for the demonstration board.  music.c ? speaker demonstration: plays one line of "bicycle built for two" (with lyrics) .  music2.c ? speaker demonstration: p lays one line of "fr elise" as background music while other processing is going on.  remote1.c ?demonstrates simple serial data communication using a remote ansi terminal such as hyperterminal from an available pc com port connection.  smtpdemo.c ?uses the tcpip\smtp.lib library to send an e-mail when a key on the keypad or a switch on the demonstra tion board is pressed. see appendix d for hookup instructions for the demonstration board.  speaker.c ?demonstrates how to adjust th e speaker frequency and volume.  tcp_respond.c ?shows how to receive messages and respond.  tcp_send.c ?shows how to send message to specific addresses and ports. the programs tcp_send.c and tcp_respond.c are meant to be executed on two dif- ferent intellicom boards so that the two boards communicate with each other. in the absence of a second board, pcsend.exe (used with tcp_send.c ) and pcrespond.exe (used with tcp_respond.c ) in the samples\icom\windows directory can be used on the pc console side at the command prompt. both the executables and the c source code are located in the windows directory. using pcsend pcsend.c is the source code for pcsend.exe used on the pc console side to communi- cate with an intellicom board. the executable pcsend.exe is similar to tcp_send.c , but is run at the command prompt to comm unicate with an intellicom board running tcp_respond.c . using pcrespond pcrespond.c is the source code for pcrespond.exe used on the pc console side to communicate with an intellicom board. the executable pcrespond.exe is similar to tcp_respond.c , but is run at the command prompt to communicate with an intellicom board running tcp_send.c .
36 intellicom (op6600/op6700) 4.3 dynamic c libraries two library directories are specific to the intellicom.  icom ?libraries associated with features specific to the intellicom unit.  tcpip ?libraries specific to using tcp/ip functions on the intellicom board. other functions applicable to all device s based on the rabbit microprocessors are described in the dynamic c function reference manual . the tcp/ip functions are described in the dynamic c tcp/ip user?s manual included in the manual set with the dynamic c user?s manual . additional tcp/ip libraries are added on an ongoing basis.
user?s manual 37 4.4 intellicom function calls 4.4.1 board initialization initializes port registers for the operation of the boar d. call this function at the beginning of the applica- tion. return value none see also dispinit, keyinit 4.4.2 digital i/o sets the state of a digital output. parameters channel is the output channel number (0, 1, 2, or 3). value is the output value (0 or 1). return value none. see also digin reads the state of a digital input. parameters channel is the input channel number (0, 1, 2, or 3). return value the state of the input (0 or 1). see also digout void brdinit (void); void digout (int channel, int value); int digin (int channel);
38 intellicom (op6600/op6700) 4.4.3 serial communication library files included with dynamic c provide a full range of serial communications sup- port. the rs232.lib library provides a set of circular -buffer-based serial functions. the packet.lib library provides packet-based serial functions where packets can be delim- ited by the 9th bit, by transmission gaps, or with user-defined special characters. both libraries provide blocking functions, which do not return until they are finished transmit- ting or receiving, and nonblocking functions, which must be called repeatedly until they are finished. for more information, see the dynamic c function reference manual and technical note 213, rabbit 2000 serial port software . the following function calls are specific to the intellicom. user interface to set up serial communication lines for the intellicom board. call this function after serxopen() . parameters mode is the defined serial port configuration of the devices installed. return value 0 if correct mode, 1 if not. see also serb485tx, serb485rx sets pin 3 (de) high to disable rx and enable tx. see also sermode, serb485rx resets pin 3 (de) low to enable rx and disable tx. see also sermode, serb485tx int sermode (int mode); mode serial port b c 0 rs-485 rs-232, 3-wire 1 rs-232, 3-wire rs-232, 3-wire 2 rs-232, 5-wire cts/rts void serb485tx(); void serb485rx();
user?s manual 39 4.4.4 keypad controls scans and processes keypad data (up to 8 8 matrix) for key assignment, debouncing, press and release, and repeat. provides debouncing, user-definable key code, separate press and release code (both optional), two- and three-speed auto repeat. return value none. see also keyconfig, keyget, keypaddef assigns user-defined keys to keypad positions. defines ticks for key debouncing and speed. parameters craw is the raw key code index, a 2 6 keypad matrix with the following raw keycode index assign- ments. cpress is the key press code, an 8-bit value return ed when a key is pressed (0 = unused). see keypaddef for default press codes. crelease is the key release code, an 8-bit value to be returned when a key is released (0 = unused). ccnthold is hold ticks, how long to hold before repeating (0 = no repeat). cspdlo is low-speed repeat ticks, how many times to repeat (0 = none). ccntlo is low-speed hold ticks, how long to hold before going to high-speed repeat (0 = slow only). cspdhi is high-speed repeat ticks, how many times to repeat after low-speed repeat (0 = none). return value none. see also keyprocess, keyget, keypaddef void keyprocess (void); void keyconfig (char craw, char cpress, char crelease, char ccnthold, char cspdlo, char ccntlo, char cspdhi); col 5 col 4 col 3 col 2 col 1 col 0 row 1 5 4 3 2 1 0 row 0 13 12 11 10 9 8
40 intellicom (op6600/op6700) gets next keypress. return value the next keypress, or 0 if none. see also keyconfig, keyprocess, keypaddef initializes keypad process. return value none. see also brdinit configures keypad to default layout: [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ . ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 0 ] [enter] return value none. see also keyconfig, keyget, keyprocess char keyget (void); void keyinit (void); void keypaddef();
user?s manual 41 4.4.5 display controls sets display contrast. parameters suggested values are 40?128 for high to low contrast, although 4?252 can be used. contrast adjustment not supported on vfds. return value none. see also disponoff, dispbacklight sets cursor type: on, off, or blinking. parameters wstyle is one of the following cursor macros: disp_curoff for cursor off disp_curon for cursor on disp_curblink for cursor blink return value none. see also dispclear, dispgoto positions the cursor. parameters wx is the column position, 0 to 19. wy is the row position, 0 to 3. return value none. see also dispclear, dispcursor void dispcontrast (char vcontrast); void dispcursor (unsigned int wstyle); void dispgoto (unsigned wx, unsigned wy);
42 intellicom (op6600/op6700) clears the display and homes cursor. return value none. see also dispgoto, dispcursor puts a character on the display. parameter cbyte is the character to display. return value none. see also dispprintf prints formatted string to the display, similar to printf call. parameter pcformat is the formatted string. return value none. see also dispputc turns the display on or off. parameters set or write 1 to turn the display on. clear or write 0 to turn the display off. return value none. see also dispcontrast, dispbacklight void dispclear (void); void dispputc (char cbyte); void dispprintf (char *pcformat, ...); void disponoff (int onoff);
user?s manual 43 sets the backlight on or off. not supported on vfds. parameters set or write 1 to turn the backlight on. clear or write 0 to turn the backlight off. return value none. see also dispcontrast, disponoff initializes the display. specifically, the function reinitializes the display controller, clears the display, and puts a nonblinking underline cursor in the top left position. return value none. see also brdinit void dispbacklight (int onoff); void dispinit();
44 intellicom (op6600/op6700) 4.4.6 speaker controls outputs speaker frequency and volume with various frequency and voltage values. parameters wfreq ?suggested frequency values are from 575 hz to 3,000 hz: for example, enter 1000 for 1 khz. values less than 575 (575 hz) will be ignored. wamp ? voltage amplitude (volume) values are 0, 1, 2, and 3: 0 = off, and 3 = loudest volume. return value none. void spkrout (unsigned int wfreq, unsigned int wamp);
user?s manual 45 5. u sing the tcp/ip f eatures chapter 5 provides an introduction to using the tcp/ip features on your intellicom. 5.1 tcp/ip connections before proceeding you will need to have the following items.  if you don?t have ethernet access, you will need at least a 10base-t ethernet card (available from your favorite comput er supplier) installed in a pc.  two rj-45 straight through ethernet cables and a hub, or an rj-45 crossover ethernet cable. the ethernet cables and ethernet hub are avai lable from rabbit in a tcp/ip tool kit. more information is available at www.rabbit.com . 1. connect the ac adapter and the programmi ng cable as shown in chapter 2, ?getting started.? 2. ethernet connections  if you do not have access to an ethernet netw ork, use a crossover ethernet cable to con- nect the intellicom to a pc that at least has a 10base-t ethernet card.  if you have an ethernet connection, use a straight-through ethernet cable to establish an ethernet connection to the intellicom from an ethernet hub. th ese connections are shown in figure 15. 3. apply power plug in the ac adapter. the intellicom board is now ready to be used. note: a hardware reset is accomplished by unplugging the ac adapter, then plugging it back in. when working with the intellicom board, the green lnk light is on when a program is running and the board is properly connected eith er to an ethernet hub or to an active eth- ernet card. the red act light flashes each time a packet is received.
46 intellicom (op6600/op6700) figure 15. ethernet connections         
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                           
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                   &' (&)* +,-./ 01-.2  3 5;5,&'4-'& '56. 5 *+&,.&*9),' 5   :5,* 2 &' 3 1
!  3 ) +
,5445>&, 9)1;& 6'
1
! 3 ) 

)  ((7 
 &' (&)* +,-./ 01-.2  3 5;5,&'4-'& '56. 5   :5,* *,)-2+* +,502+ 9)1;&4 6'
1
! 3 ) 8/
) 
'03 !3 (/03
  3 ) 8/ 2 &' 3 1
!  3 ) +
5 *+&,.&*9),'  ! #  ! #
user?s manual 47 5.2 running tcp/ip sample programs we have provided a number of sample programs demonstrating various uses of tcp/ip for networking embedded systems. these programs require that the user connect his pc and the intellicom board together on the same network. this network can be a local private network (preferred for initial experimentat ion and debugging), or a connection via the internet. obtaining ip addresses to interact over an existing, operating, network can involve a num- ber of complications, and must usually be done with cooperation from your isp and/or network systems administrator (if your company has one). for this reason, it is suggested that the user begin instead by using a direct connection between a pc and the intellicom board using an ethernet crossover cable or a simple arrangement with a hub. (a crossover cable should not be confused with regular straight through cables.) the hub and a wide variety of cables can also be purchased from a local computer store. in order to set up this direct connection, the us er will have to use a new pc (right out of the box), or disconnect a pc from the corporate network, or as yet another approach install a second ethernet adapter and set up a separa te private network attached to the second ethernet adapter. disconnecting your pc fro m the corporate network may be easy or nearly impossible, depending on how it is set up. mobile pcs, such as laptops, are designed to be connected and disconnected, and will present the least problem. if your pc boots from the network or is dependent on the ne twork for some or all of its disks, then it probably should not be disconnected. if a second ethernet adapter is used, be aware that windows tcp/ip will send messages to one adapter or the other, depending on the ip address and the binding order in microstate products. thus you should have different ranges of ip addresses on your private netw ork from those used on the corporate network. if both networks service the same ip addre ss, then windows may send a packet intended for your private network to the corporate ne twork. a similar situatio n will take place if you use a dial-up line to send a packet to the internet. windows may try to send it via the local ethernet network if it is also valid for that network. the following private ip addresses are set asid e for local networks and are not allowed on the internet: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. the intellicom board uses a 10base-t type of ethernet connection, which is the most common scheme. the rj-45 connectors are similar to u.s. style telephone connectors, are except larger and have 8 contacts. an alternative to the direct connection using a crossover cable is a direct connection using a hub. the hub relays packets received on any port to all of the ports on the hub. hubs are low in cost and are readily available. the intellicom board uses 10 mbps ethernet, so the hub or ethernet adapter must be either a 10 mbps unit or a 10/100 mbps unit.
48 intellicom (op6600/op6700) in a corporate setting where the internet is brought in via a high-speed line, there are typi- cally machines between the outside internet and the internal network. these machines include a combination of proxy servers and firewa lls that filter and multiplex internet traf- fic. in the configuration below, the intellicom board could be given a fixed address so any of the computers on the local network would be able to contact it. it may be possible to configure the firewall or proxy server to allow hosts on the internet to directly contact the controller, but it would probably be easier to place the controller directly on the external network outside of the firewall. this avoids some of the configuration complications by sacrificing some security. if your system administrator can give you an et hernet cable along with its ip address, the netmask and the gateway address, then you may be able to run the sample programs with- out having to setup a direct connection betw een your computer and the intellicom board. you will also need the ip address of the name server, the name or ip address of your mail server, and your domain name for some of the sample programs. intellicom user?s pc ethernet crossover cable direct connection (network of 2 computers) intellicom hub ethernet cables to additional network elements direct connection using a hub board board hub(s) firewall proxy server t1 in adapter ethernet ethernet network intellicom board typical corporate network
user?s manual 49 5.3 how to set ip addresses in the sample programs with the introduction of dynamic c 7.30 we have taken steps to make it easier to run many of our sample programs. you will see a tcpconfig macro. this macro tells dynamic c to select your conf iguration from a list of defa ult configurations. you will have three choices when you encount er a sample program with the tcpconfig macro. 1. you can replace the tcpconfig macro with individual my_ip_address , my_netmask , my_gateway , and my_nameserver macros in each program. 2. you can leave tcpconfig at the usual default of 1, which will set the ip configurations to 10.10.6.100 , the netmask to 255.255.255.0 , and the nameserver and gateway to 10.10.6.1 . if you would like to change the default values, for example, to use an ip address of 10.1.1.2 for the intellicom board, and 10.1.1.1 for your pc, you can edit the values in the section that directly follo ws the ?general configuration? comment in the tcp_config.lib library. you will find this library in the lib\tcpip directory. 3. you can create a custom_config.lib library and use a tcpconfig value greater than 100. instructions for doing this are at the beginning of the tcp_config.lib library in the lib\tcpip directory. there are some other ?standard? configurations for tcpconfig that let you select differ- ent features such as dhcp. their valu es are documented at the top of the tcp_config.lib library in the lib\tcpip directory. more information is available in the dynamic c tcp/ip user?s manual . ip addresses before dynamic c 7.30 most of the sample programs use macros to de fine the ip address assigned to the board and the ip address of the gateway, if there is a gateway. instead of the tcpconfig macro, you will see a my_ip_address macro and other macros. #define my_ip_address "10.10.6.170" #define my_netmask "255.255.255.0" #define my_gateway "10.10.6.1" #define my_nameserver "10.10.6.1" in order to do a direct connection, the following ip addresses can be used for the intellicom: #define my_ip_address "10.1.1.2" #define my_netmask "255.255.255.0" // #define my_gateway "10.10.6.1" // #define my_nameserver "10.10.6.1" in this case, the gateway and nameserver are not used, and are commented out. the ip address of the board is defined to be 10.1.1.2 . the ip address of you pc can be defined as 10.1.1.1 .
50 intellicom (op6600/op6700) 5.4 how to set up your computer?s ip address for direct connect when your computer is connected directly to the intellicom board via an ethernet connec- tion, you need to assign an ip address to your computer. to assign the pc the address 10.10.6.101 with the netmask 255.255.255.0 , do the following. click on start > settings > control panel to bring up the control panel, and then dou- ble-click the network icon. depending on wh ich version of windows you are using, look for the tcp/ip protocol / network > dial-up connections / network line or tab. double- click on this line or select properties or local area connection > properties to bring up the tcp/ip properties dialog box. you can edit the ip address and the subnet mask directly. (disable ?obtain an ip address au tomatically.?) you may want to write down the existing values in case you have to restore them later. it is not necessary to edit the gate- way address since the gateway is not used with direct connect. intellicom user?s pc ethernet crossover cable direct connection pc to intellicom board board ip 10.10.6.101 netmask 255.255.255.0
user?s manual 51 5.5 run the pingme.c demo in order to run this program, edit the ip address and netmask in the pingme.c program ( samples\tcpip\icmp ) to the values given above (10.1.1.2 and 255.255.255.248). compile the program and start it running under dynamic c. the crossover cable is con- nected from your computer?s ethernet adapter to the intellicom board?s rj-45 ethernet connector. when the program starts running, the green lnk light on the intellicom board should be on to indicate an ethernet connect ion is made. (note: if the lnk light does not light, you may not have a crossover cable, or if you are using a hub perhaps the power is off on the hub.) the next step is to ping the board from your pc. this can be done by bringing up the ms-dos window and running the pingme program: ping 10.1.1.2 or by start > run and typing the entry ping 10.1.1.2 notice that the red act light flashes on the intellicom board while the ping is taking place, and indicates the transfer of data. the ping routine will ping the board four times and write a summary message on th e screen describing the operation. 5.6 running more demo programs with a direct connection the programs static.c and ssi3.c ( samples\tcpip\http ) demonstrate how to make the intellicom board be a web server. this program allows you to turn the leds on an attached demonstration board from the development kit on and off from a remote web browser. in order to run these sample pr ograms, edit the ip address as for the pingme program, compile the program and start it ex ecuting. then bring up your web browser and enter the following server address: http://10.1.1.2. this should bring up the web page served by the sample program. the sample program rxsample.c ( samples\telnet ) allows you to communicate with the intellicom board using the telnet protocol. to run this program, edit the ip address, compile the program, and start it runnin g. run the telnet program on your pc ( start > run telnet 10.1.1.2 ). each character you type will be printed in dynamic c's stdio window, indicating that the board is receiving the characters typed via tcp/ip.
52 intellicom (op6600/op6700) 5.7 where do i go from here? note: if you purchased your intellicom through a distributor or rabbit partner, contact the distributor or partner first for technical support. if there are any problems at this point:  use the dynamic c help menu to get further assistance with dynamic c.  check the rabbit technical bulletin board and forums at www.rabbit.com/support/bb/ and at www.rabbit.com/forums/ .  use the technical support e-mail form at www.rabbit.com/support/ . if the sample programs ran fine, you are now ready to go on. refer to the dynamic c tcp/ip user?s manual to develop your own applications. an introduction to tcp/ip provides background information on tcp/ip, and is included on the cd, and is also available on our web site .
user?s manual 53 a ppendix a. i ntellicom s pecifications appendix a provides the specifications for the intellicom and describes the conformal coating.
54 intellicom (op6600/op6700) a.1 electrical and mechanical specifications figure a-1 shows the mechanical dime nsions for the intellicom board. figure a-1. intellic om board dimensions ? f g ? f g ? f g ? f ?g         
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "                    $!%  
  
                  
user?s manual 55 table a-1 lists the electrical, mechanical, and environmental specifications for the intelli- com board. table a-1. intellicom board specifications feature op6600 op6700 microprocessor rabbit 2000? at 18.432 mhz ethernet port none 10base-t, rj-45 flash eprom 256k 512k (2256k) sram 128k (standard) backup battery on backup battery board, 3 v lithium coint-type, 1000 mah, supports rtc and sram keypad/display 2 6 domed tactile keypad with customizable legend, supertwist 4 20 lcd with backlighting digital inputs 4 protected to 36 v dc digital outputs 4 open collector, sinking (200 ma, 40 v dc max.) speaker output software-adjustable volume and frequency serial ports 3 serial ports:  one 5 v cmos-compatible programming port  either two rs-232 (3-wire), one rs-485 and one rs-232 (3-wire), or one rs-232 (5-wire) serial rate max. burst rate = clk/32 max. sustained rate = burst/2 connectors 15 screw terminals, 1 rj-12, and 1 rj-45 real-time clock yes timers 5 eight-bit timers (four cascadable from the first) and one 10-bit timer with two match registers watchdog/supervisor yes power 9?40 v dc, 2.4 w (backlighting on) operating temperature 0c to +50c storage temperature ?20c to +60c humidity 5% to 95%, noncondensing board size (with backup battery board) 4.30" 4.71" 0.80" (109 mm 120 mm 20.3 mm) enclosure size 5.7" 6.7" 2.0" (145 mm 170 mm 51 mm)
56 intellicom (op6600/op6700) a.2 conformal coating the areas around the crystal oscillator and the battery-backup circuit on the intellicom have had the dow corning silicone-based 1- 2620 conformal coating applied. the confor- mally coated areas are shown in figure a-2. the conformal coating protects these high- impedance circuits from the effects of moisture and contaminants over time. figure a-2. intellicom areas receiving conformal coating any components in the conformally coated area may be replaced using standard soldering procedures for surface-mounted components. a new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants. note: for more information on conformal coatings, refer to technical note 303, con- formal coatings .         
                                                                                                                                                                                                   ! ! "     ! ! ! ! # # # # " "     "               ().( 
, +(
 

     $!%  
  
                  
user?s manual 57 a.3 jumper configurations figure a-3 shows the header locations used to configure the various intellicom options via jumpers. figure a-3. location of intellicom configurable positions                       ! ! "         "  $!%  9: 
58 intellicom (op6600/op6700) table a-2 lists the configuration options. note: only headers jp6 and jp7 use actual jumpers. the other connections are made using 0 ? surface-mounted resistors. table a-2. intellicom jumper configurations header description pins connected factory default jp1 sram size 1?2 128k 2?3 512k none 32k jp2 flash 1 memory size (u5) 1?2 128k/256k 2?3 512k jp3 flash 2 memory size (u6) 1?2 128k/256k 2?3 512k jp4 digital input pull-up/pull-down resistors 1?2 pulled up 2?3 pulled down jp5 flash memory bank select 1?2 normal mode 2?3 bank mode jp6 rs-485 bias and termination resistors 1?2 5?6 bias and termination resistors connected none bias and termination resistors not connected jp7 rs-232/rs-485 select 1?3 2?4 rs-232 txb/rxb (also txc/rxc or rts/cts) signals on j7 3?5 4?6 rs-232 txc/rxc and rs-485 signals on j7 1?5 2?6 rs-232 txb/rxb signals on j5 (u10 must be removed)
user?s manual 59 a ppendix b. k eypad and p lastic e nclosure
60 intellicom (op6600/op6700) b.1 keypad insert the keypad is designed to accept paper insert s prepared on regular paper. the templates shown below in figure b-1 can be used to cr eate custom inserts. the numbers shown on the upper template correspond to the codes returned by dynamic c when that key is pressed. figure b-1. intellicom 2 6 keypad template these instructions describe how to change the keypad insert. 1. set the outer plastic casing aside and lay the front panel face down on a soft cloth so that the intellicom board is facing up. 2. unplug the speaker and the keypad as shown in figure b-2. 3. remove the four screws shown in figure b-2 that hold the intellicom board to the front panel. 4. lift the intellicom board up front the front panel and set it aside. note that the lcd is attached permanently to the intellicom board. 5. remove the four screws shown in figure b -3 that hold the keypad to the front panel. 6. remove the old insert and place the new insert in between the keypad and the mylar front. you may tape down the portion of the insert that extends beyond the keypad. 7. line up the keypad over the front panel and replace the four 2-56 screws as shown in figure b-3. line up the intellicom board/lcd a nd replace the four screws as shown in figure b-2. reconnect the keypad and the speaker to the intellicom board. ? f?g ? f g ? f?g ? f?g ? f g ? f?g ? f g ? fg ? f?g ? f?g         
user?s manual 61 figure b-2. removing intellicom board from front panel figure b-3. removing keypad from front panel         
                                                                                                                                                                                                                                          ! ! "     ! ! ! ! # # # # " "     "   7 +)  $!%  
  
 
62 intellicom (op6600/op6700) b.2 plastic enclosure figure b-4 shows the dimensions of the intellicom front panel bezel. figure b-4. intellicom fr ont panel bezel dimensions ? f?g ?  f? g ? f?g ?  f? g ? f?g ? f?g ? f?g -' 
,  /  ? h? f? h ? g 4,
  /  ?h? f? h?g
user?s manual 63 figure b-5 shows the dimensions of the outer casing, including the attached front panel. figure b-5. intellicom outer casing dimensions ? f?g ? f ?g ? f?g ? f?g ? f ?g ? f?g ? f?g ? f ?g ? f ?g ? f ?g ? f?g
64 intellicom (op6600/op6700) b.2.1 assembling intellicom enclosure there are two recommended assemblies possible for the intellicom: 1. mount the front panel bezel in an opening you have created. this option allows you to have a splash-resistant unit by using the gask et supplied with the intellicom to form a splash-resistant seal between th e front panel bezel and your opening. 2. mount the front panel bezel using the outer casing supplied with the intellicom. b.2.1.1 custom mounting in an opening place the rubber gasket supplied with the inte llicom between the front panel bezel and the surface the intellicom will be mounted. a splash-resistant seal will result when the brack- ets are attached. figure b-7. splash-resistant mounting of intellicom prepare an opening to accommodate the intelli- com front panel bezel shown in figure b-4. the thickness of the surface the intellicom front bezel is mounted on should be either 0.0625 inches (1.6 mm) or 0.125 inches (3.2 mm). use the brackets on the plastic tree included with the intel- licom (see figure b-6) to attach the front panel bezel to the surface. a splash-resistant mounting is also possible. first, remove the speaker from the front panel bezel, and insert the speaker plug to close the holes in the speaker grille. apply some hot glue around the edges of the plug to form a splash- resistant seal. replace the speaker?a dab of glue around the edge of the speaker will hold it in place. figure b-6. mounting brackets and speaker plug %50.*-.2 0,=)9& )4/&* 
9  /0 ')  ) '+( =,5.*:).&;
user?s manual 65 b.2.1.2 supplied outer casing once the desired wires have been connected to header j7 on the intellicom board, the intellicom may be mounted in the plastic outer casing as shown in figure b-8. secure the plastic casing with the six screws supplied with the intellicom figure b-8. mounting intellicom in plastic outer casing the outer casing has a knockout for a conduit on one side. the casing is symmetric, and so the conduit knockout can face up or down. use a small hacksaw to remove the knockout if you are using a conduit. the conduit opening has an o.d. of 0.826 inches (21.0 mm), which accommodates standard trade si ze ? or 17 mm diameter conduit. when routing cables through the conduit, our has found that an ethernet cable (minus the rubber boot on the rj-45 plug) should be routed first, followed by the rs-485 cable with the rj-12 plug, followed by other wire. if you are using the rj-45 jack at j6 for an ethernet connection with the intellicom installed in the plastic outer casing, remove the protective rubber boot around the ethernet cable rj-45 jack that plugs into the intellicom board. this will ensure that the ethernet cable can bend back within the depth of the plastic outer casing. figure b-9. remove rubber boot from rj-45 connection to intellicom  
 

 
 
  2
&$$$
 "
2'8-  8% 
9 #
2
66 intellicom (op6600/op6700) figure b-10 shows an intellicom wired through a conduit. figure b-10. rear view of intellicom with outer casing showing wiring from conduit
user?s manual 67 a ppendix c. p ower m anagement appendix c describes the power circuitry distributed on the intellicom. c.1 power supplies power is supplied to the intellicom board from an external source either through header j7 or from another intellicom through header j5, the rj-12 jack. the intellicom board itself is protected ag ainst reverse polarity by shottky diodes at d6 and d7 as shown in figure c-1. the shottky diode has a low forward voltage drop, 0.3 v, which keeps the minimum dcin required to power the intellicom lower than a normal sil- icon diode would allow. figure c-1. intellicom power supply schematic capacitor c28 provides surge current protection for the voltage regulator, and allows the external power supply to be located some distance away from the intellicom board. a switching power regulator is used. the input voltage range is from 9 v to 40 v. ! #  ia  ia %   
99     i(                   # (#!   !
 #  b  
68 intellicom (op6600/op6700) c.2 batteries and external battery connections a battery board with a 1000 mah lithium coin cell provides power to the real-time clock and sram when external power is removed from the circuit. this allows the intellicom to continue to keep track of time and preserves the sram memory contents. figure c-2 shows the battery-board circuit. figure c-2. intellicom backup-battery board alternatively, starting with the 175-0206 version of the intellicom, there is provision to add a soldered-in battery directly on the intellicom board. the drain on the battery is typically less than 20 a when there is no external power applied. the battery can last more than 5 years: the drain on the battery is typically less than 4 a when external power is applied. the battery can last for its full shelf life: since the shelf life of the battery is 10 years, the battery can last for its full shelf life when external power is applied to the intellicom. c.2.1 battery-backup circuit the battery-backup circuit serves two purposes:  it reduces the battery voltage to the real-time clock, thereby reducing the current con- sumed by the real-time clock and lengthening the battery life.  it ensures that current can flow only out of the battery to prevent charging the battery.
#     

 1     
#  1000 mah 20 a -------------------------- - 5.7 years. = 1000 mah 4 a --------------------------- 28.5 years (shelf life = 10 years). =
user?s manual 69 figure c-3 shows the battery-backup circuitry on the intellicom board. figure c-3. intellicom battery-backup circuit the battery-backup circuit serves three purposes:  it reduces the battery voltage to the sram and to the real-time clock, thereby limiting the current consumed by the real-time clock and lengthening the battery life.  it ensures that current can flow only out of the battery to prevent charging the battery.  a voltage, vosc, is supplied to u13, which keeps the 32.768 khz oscillator working when the voltage begins to drop. vram and vcc are nearly equal (<100 mv, t ypically 10 mv) when power is supplied to the intellicom. vram is also available on pin 34 of header j2 to facilitate battery backup of the external circuit. note that the recommended minimum resistive load at vram is 100 k ? , and new battery life calculations should be done to take external loading into account. c.2.2 power to vram switch the vram switch, shown in figure c-4, allo ws the battery backup to provide power when the external power goes off. the switch provides an isolation between vcc and the battery when vcc goes low. this prevents the vcc line from draining the battery.  ?/ 
%
  " /: ; )  /  /    / 

99 /   /   :-.        .a  .a
70 intellicom (op6600/op6700) figure c-4. vram switch transistor q3 is needed to provide a ve ry small voltage drop between vcc and vram (<100 mv, typically 10 mv) so that the processor lines powered by vcc will not have a significantly different voltage than vram. when the intellicom is not resetting (pin 2 on u4 is high), the /res line will be high. this turns on q4, causing its collector to go low. this turns on q3, allowing vram to nearly equal vcc. when the intellicom is resetting, the /res line will go low. this turns off q3 and q4, pro- viding an isolation between vcc and vram. the battery-backup circuit keeps vram from dropping below 2 v. c.2.3 reset generator the intellicom uses a reset generator, u 2, to reset the rabbit 2000 microprocessor when the voltage drops below the voltage necessary for reliable operation. the reset occurs between 4.50 v and 4.75 v, typically 4.63 v. c.2.4 replacing the backup-battery board the pluggable backup-battery board makes it ea sy to replace the backup battery with a fresh backup battery on another backup battery board. before replacing the backup-battery board, make sure that the intellicom is re ceiving power from the standard power supply. this makes sure that data in ram are not lost when the battery-backup board is removed temporarily. to replace the backup-battery board, remove the screw and unplug the old battery board as shown in figure c-5. a
     
%
  %%   /    e  / 
user?s manual 71 figure c-5. replacing backup-battery board then align the replacement battery board over the outline, and plug it in. be careful to align the connectors. replace the screw. do not attempt to recharge the old battery and do not dispose of it in regular trash to avoid any risk of explosion or fire. you may either return the old backup-battery board to rabbit for recycling or send the battery yourself to an approved recycling facility. c.3 chip select circuit figure c-6 shows a schematic of the chip select circuit. figure c-6. chip select circuit                                                       )**&,< &85>&49,&6? .:;0215),'? e  e % e          
%
% /   /   /    /   :a
72 intellicom (op6600/op6700) the current drain on the battery in a battery-backed circuit must be kept at a minimum. when the intellicom is not powered, the batte ry keeps the sram memory contents and the real-time clock (rtc) going. the sram has a powerdown mode that greatly reduces power consumption. this powerdown mode is activated by raising the chip select (cs) signal line. normally the sram requires vcc to operate. however, only 2 v is required for data retention in powerdown mode. thus, when power is removed from the circuit, the battery voltage needs to be provided to bot h the sram power pin and to the cs signal line. the cs control circuit accomplishes this task for the cs signal line. in a powered-up condition, the cs control circui t must allow the processor?s chip select signal /cs1 to control the sram?s cs signa l /csram. so, with power applied, /csram must be the same signal as /cs1, and with power removed, /csram must be held high (but only needs to be battery voltage high) . q5 and q6 are mosfet transistors with opposing polarity. they are both turned on when power is applied to the circuit. they allow the cs signal to pass from the processor to the sram so that the processor can peri- odically access the sram. when power is remove d from the circuit, the transistors will turn off and isolate /csram from the processor. the isolated /csram line has a 100 k ? pullup resistor to vram (r29). this pullup re sistor keeps /csram at the vram voltage level (which under no power condition is the ba ckup battery?s regulated voltage at a little more than 2 v). transistors q5 and q6 are of opposite polarity so that a rail-to-rail voltage can be passed. when the /cs1 voltage is low, q5 will conduct. when the /cs1 voltage is high, q6 will conduct. it takes time for the transistors to turn on, creating a propagation delay. this delay is typically very small, about 10 ns to 15 ns. the signal that turns the transistors on is a high on the processor?s reset line, /res. when the intellicom is not in reset, the reset lin e will be high, turning on n-channel q5 and q7. q7 is a simple inverter needed to turn on q6, a p-channel mosfet. when a reset occurs, the /res line will go low. this will cause c14 to discharge through r32 and r34. this small delay (about 160 s) ensures that there is adequate time for the processor to write any last byte pending to the sram before the processor puts itself into a reset state. when coming out of reset, cs will be enabled very quickly because d1 conducts to charge capacitor c14.
user?s manual 73 a ppendix d. r unning s ample p rograms appendix d shows how to connect the demonstration board to the intellicom board, and goes through a detailed look at one sample program and the associ ated features in dynamic c.
74 intellicom (op6600/op6700) d.1 connecting demonstration board before running sample programs based on the demonstration board, you will have to con- nect the demonstration board from the intellicom development kit to the intellicom board. proceed as follows. 1. use the wires included in the intellicom tool kit to connect header j1 on the demon- stration board to header j7 on the intellicom board. the connections are shown in figure d-1. 2. make sure that your intellicom board is c onnected to your pc and that the power sup- ply is connected to the intellicom board a nd plugged in as described in chapter 2, ?get- ting started,? figure d-1. connections between inte llicom board and demonstration board ($ # ,!) /;1'0   # # # # ! ! ! ! ) /;10 
                                ! ! ! ! # # # # " "  $!%  3   $$                      
               $$ (  (                                              %!!  # #!%! 
user?s manual 75 d.2 running sample program demobrd1.c the sample program demobrd1.c in the samples\icom folder will be used to illustrate some of the functions of dynamic c. now, open demobrd1.c . the program will appear in a window, as shown in figure d-2 below (minus some comments). use the mouse to place the cursor on the function name wrporti in the program and type . this will bring up a documentation box for the function wrporti . in general, you can do this with all functions in dynamic c libraries, including libraries you write yourself. clos e the documentation box and continue. figure d-2. sample program demobrd1.c to run the program demobrd1.c , open it with the file menu, compile it using the compile menu, and then run it by selecting run in the run menu. led1 and led2 on the demon- stration board should start going on and off if everything went well. if this doesn?t work, review the following points.  the target should be ready, which is indi cated by the message ?bios successfully com- piled...? if you did not receive this message or you get a communication error, recom- pile the bios by typing or select recompile bios from the compile menu. main(){ int j; wrporti(pdddr,&pdddrshadow,0x03); wrporti(pddcr,&pddcrshadow,0x00); while(1) { bitwrporti(pddr,&pddrshadow,0xff,0); bitwrporti(pddr,&pddrshadow,0x00,1); for(j=0; j<20000; j++); bitwrporti(pddr,&pddrshadow,0x00,0); bitwrporti(pddr,&pddrshadow,0xff,1); for(j=0; j<20000; j++); } // end while(1) } // end of main c programs begin with main start a loop time delay by counting to 20,000 end of the endless loop note: see the rabbit 2000 microprocessor user?s manual (software chapter) for details on the routines that read and write i/o ports. set up port d to output to led1 and led2 turn on led1 and turn off led2 turn off led1 and turn on led2 time delay by counting to 20,000
76 intellicom (op6600/op6700)  a message reports ?no rabbit pr ocessor detected? in cases where the wall transformer is either not connected or is not plugged in.  the programming cable must be connected to the intellicom board. (the colored wire on the programming cable is closest to pin 1 on header j4 on the intellicom board, as shown in figure 1.) the other end of the programming cable must be connected to the pc serial port. the com port specified in the dynamic c options menu must be the same as the one the programming cable is connected to.  to check if you have the correct serial port, select compile , then compile bios , or type . if the ?bios successfully compiled ?? message does not display, try a different serial port using the dynamic c options menu until you find the serial port you are plugged into. don?t change anything in this menu except the com number. the baud rate should be 115,200 bps and the stop bits should be 1. d.2.1 single-stepping compile or re-compile demobrd1.c by clicking the compile button on the task bar. the program will compile and the screen will come up with a highlighted character (green) at the first executable statement of the program. use the f8 key to single-step. each time the f8 key is pressed, the cursor will advanc e one statement. when you get to the for(j=0, j< ... statement, it becomes impractical to single-step further because you would have to press f8 thousands of times. we will use this statement to illustrate watch expressions. d.2.1.1 watch expression type or chose add/del watch expression in the inspect menu. a box will come up. type the lower case letter j and click on add to top and close . now continue sin- gle-stepping with f8 . each time you step, the watch expression ( j ) will be evaluated and printed in the watch window. note how the value of j advances when the statement j++ is executed. d.2.1.2 break point move the cursor to the start of the statement: for(j=0; j<20000; j++); to set a break point on this statement, type f2 or select breakpoint from the run menu. a red highlight will appear on the first characte r of the statement. to get the program run- ning at full speed, type f9 or select run on the run menu. the program will advance until it hits the break point. the break point will start flashing both red and green colors. note that led1 on the demonstration board is now solidly turned on. this is because we have passed the statement turning on led1. to remove the break point, type f2 or select toggle breakpoint on the run menu. to continue program execution, type f9 or select run from the run menu. now led1 should be flashing again because th e program is running at full speed. you can set break points while the program is running by positioning the cursor to a state- ment and using the f2 key. if the execution thread hits the break point, a break point will
user?s manual 77 take place. you can toggle the break point off with the f2 key and continue execution with the f9 key. try this a few times to get the feel of things. d.2.1.3 editing the program click on the edit box on the task bar. this will set dynamic c into the edit mode so that you can change the program. use the save as choice on the file menu to save the file with a new name so as not to change th e demo program. save the file as mytest.c . now change the number 20000 in the for (.. statement to 10000. then use the f9 key to recompile and run the program. the leds will start flashing, but it will flash much faster than before because you have changed the loop counter terminal value from 20000 to 10000. d.2.1.4 watching variables dynamically go back to edit mode (select edit) and load the program demobrd2.c using the file menu open command. this program is the same as the first program, except that a variable k has been added along with a statement to increment k each time around the endless loop. the statement: runwatch(); has been added. this is a debugging statement that makes it possible to view variables while the program is running. use the f9 key to compile and run demobrd2.c . now type to open the watch window and add the watch expression k to the top of the list of watch expressions. now type . each time you type , you will see the current value of k , which is incrementing about 5 times a second. as an experiment add another expression to the watch window: k*5 then type several times to observe the watch expressions k and k*5 . d.2.1.5 summary of features so far you have practiced using the following features of dynamic c.  loading, compiling and running a program. when you load a program it appears in an edit window. you can compile by selecting compile on the task bar or from the com- pile menu. when you compile the program, it is compiled into machine language and downloaded to the target over the serial port. the execution proceeds to the first state- ment of main where it pauses, waiting fo r you to command the program to run, which you can do with the f9 key or by selecting run on the run menu. if want to compile and start the program running with one keystroke, use f9 , the run command. if the pro- gram is not already compiled, the run command will compile it first.  single-stepping. this is done with the f8 key. the f7 key can also be used for single- stepping. if the f7 key is used, then descent into subroutines will take place. with the f8 key the subroutine is executed at full speed when the statement that calls it is stepped over.
78 intellicom (op6600/op6700)  setting break points. the f2 key is used to turn on or turn off (toggle) a break point at the cursor position if the program has alre ady been compiled. you can set a break point if the program is paused at a break point. you can also set a break point in a program that is running at full speed. this will cause the program to break if the execution thread hits your break point.  watch expressions. a watch expression is a c expression that is evaluated on command in the watch window. an expression is basically any type of c formula that can include operators, variables and function calls, but not statements that require multiple lines such as for or switch . you can have a list of watch e xpressions in the watch window. if you are single-stepping, then they are all ev aluated on each step. you can also com- mand the watch expression to be evaluated by using the command. when a watch expression is evaluated at a break point, it is evaluated as if the statement was at the beginning of the function where you are single-stepping. if your program is running you can also evaluate watch expressions with a if your program has a run- watch() command that is frequently executed. in this case, only expressions involv- ing global variables can be evaluated, and the e xpression is evaluated as if it were in a separate function with no local variables. d.2.2 cooperative multitasking cooperative multitasking is a convenient way to perform several different tasks at the same time. an example would be to step a machine through a sequence of steps and at the same time independently carry on a dialog with the operator via a human interface. coop- erative multitasking differs from a different approach called preemptive multitasking. dynamic c supports both types of multitaski ng. in cooperative multitask ing each separate task voluntarily surrenders its compute time when it does not need to perform any more activity immediately. in preemptive multitasking control is forcibly removed from the task via an interrupt. dynamic c has language extens ions to support multitasking. the major c constructs are called costatements, cofunctions, and slicing . these are described more completely in the dynamic c user?s manual . the example below, sample program demobrd3.c , uses cos- tatements. a costatement is a way to perform a sequence of operations that involve pauses or waits for some external event to take plac e. a complete description of costatements is in the dynamic c user?s manual . the demobrd3.c sample program has two indepen- dent tasks. the first task flashes led2 onc e a second. the second task uses button sw1 on the demonstration board to toggle the logical value of a virtual switch, vswitch , and flash led1 each time the button is presse d. this task also debounces button sw1. note that the demonstration board has to be connected to the intellicom board as described in section d.1 to be able to run demobrd3.c .
user?s manual 79 main() { int vswitch; // state of virtual switch controlled by button s1 wrporti(pdddr, &pdddrshadow, 0x03); // set port d bits 0-1 as outputs wrporti(pddcr, &pddcrshadow, 0x00); // set port d to not open drain mode vswitch = 0; // initialize virtual switch as off (1) while (1) { // endless loop // first task will flash led4 for 200 ms once per second. (2) costate { bitwrporti(pddr, &pddrshadow, 0xff, 1); // turn led on (3) waitfor(delayms(200)); // wait 200 ms bitwrporti(pddr, &pddrshadow, 0x00, 1); // turn led off waitfor(delayms(800)); // wait 800 ms (4) } // second task - debounce sw1 and toggle vswitch costate { (5) if (!bitrdporti(pddr, 2)) abort; // if button not down skip out waitfor(delayms(50)); // wait 50 ms if(!bitrdporti(pddr, 2)) abort; // if button not still down exit vswitch = !vswitch; // toggle since button was down 50 ms while (1) { waitfor(!bitrdporti(pddr, 2)); // wait for button to go up waitfor(delayms(200)); // wait additional 200 ms if (!bitrdporti(pddr, 2)) break; // if button still up break out of while loop } } // end of costate // make led1 agree with vswitch (6) bitwrporti(pddr, &pddrshadow, vswitch, 0); (7) } // end of while loop } // end of main the numbers in the left margin are reference indicators, and are not a part of the code. load and run the program. note that led2 flashes once per second. push button sw1 several times and note how led1 is toggled. the flashing of led2 is performed by the costatement starting at the line marked (2). cos- tatements need to be executed regularly, often at least every 25 ms. to accomplish this, the costatements are enclosed in a while loop. the term while loop is used as a handy way to describe a style of real-time programming in which most operations are done in one loop. the while loop starts at (1) and ends at (7).
80 intellicom (op6600/op6700) the statement at (3) waits for a time delay, in this case 200 ms. the costatement is being executed on each pass through the big loop. when a waitfor condition is encountered the first time, the current value of ms_timer is saved and then on each subsequent pass the saved value is compared to the current value. if a waitfor condition is not encoun- tered, then a jump is made to the end of the costatement (4), and on the next pass of the loop, when the execution thread reaches th e beginning of the costatement, execution passes directly to the waitfor statement. once 200 ms has passed, the statement after the waitfor is executed. the costatement has the property that it can wait for long periods of time, but not use a lot of execution time. each costatement is a little program with its own statement pointer that advances in response to conditions. on each pass through the big loop, as little as one statement in the costatement is executed, starting at the current posi- tion of the costatement?s statement pointer. consult the dynamic c user?s manual for more details. the second costatement in the program debounces the switch and maintains the variable vswitch . debouncing is performed by making sure that the switch is either on or off for a long enough period of time to ensure that hi gh-frequency electrical hash generated when the switch contacts open or close does not affect the state of the switch. the abort state- ment is illustrated at (5). if executed, the internal statement pointer is set back to the first statement within the costatement, and a jump to the closing brace of the costatement is made. at (6) a use for a shadow register is illustrate d. a shadow register is used to keep track of the contents of an i/o port that is write only - it can?t be read back. if every time a write is made to the port the same bits are set in the shadow register, then the shadow register has the same data as the port register. in this case a test is made to see the state of the led and make it agree with the state of vswitch. this te st is not strictly necessary, the output regis- ter could be set every time to agree with vsw itch, but it is placed here to illustrate the con- cept of a shadow register. to illustrate the use of snooping, use the watch window to observe vswitch while the program is running. add the variable vswitch to the list of watch expressions. then tog- gle vswitch and the led. then type to observe vswitch again. d.2.3 advantages of cooperative multitasking cooperative multitasking, as implemented with language extensions, has the advantage of being intuitive. unlike preemptive multitasking, variables can be shared between different tasks without having to take el aborate precautions. sharing variables between tasks is the greatest cause of bugs in programs that use preemptive multitasking. it might seem that the biggest problem would be response time because of the big loop time becoming long as the program grows. our solution for that is a device caused slicing that is further described in the dynamic c user?s manual .
user?s manual 81 i ndex a ac adapter .......................... 3, 9 b backup battery board ............. 70 replacing ............................ 70 battery backup circuit ........... 68 battery connections ............... 68 battery life ............................. 68 bezel ...................................... 61 disassembling intellicom .. 61 board initialization function calls ..................... 37 brdinit ............................ 37 c ce compliance ........................ 4 design guidelines ................. 5 chip select circuit .................. 71 clock doubler ........................ 30 conduit .................................. 65 conformal coating ................. 56 connections ethernet cable ................... 46 power supply ................... 8, 9 programming cable ........... 12 d demonstration board .............. 3 hookup instructions ........... 74 jumper configurations ....... 74 demonstration program ......... 10 digital i/o function calls ..................... 37 digin .............................. 37 digout ........................... 37 smode0 .......................... 26 smode1 .......................... 26 digital inputs ......................... 19 pullup/pulldown configuration ....................................... 19 digital outputs ....................... 19 sinking ............................... 19 dimensions bezel .................................. 62 front panel ......................... 62 intellicom board ................ 54 outer casing ....................... 63 display vacuum fluorescent display option ........................ 2, 29 display controls function calls ..................... 41 dispclear ....................... 42 dispcontrast .................. 41 dispcursor ..................... 41 dispgoto ........................ 41 disponoff ...................... 42 dispprintf ....................... 42 dispputc ......................... 42 dynamic c ........................ 3, 31 break point ........................ 76 com port .......................... 14 debugging features ............ 31 dynamic c modules .......... 33 editing the program ........... 77 features .............................. 77 handling different memories in bios ............................. 28 libraries ............................. 36 memory bios ............................. 28 multitasking ................ 78, 80 rabbit embedded security pack ................................ 3 single-stepping .................. 76 standard features ............... 32 debugging ...................... 32 starting .............................. 14 telephone-based technical support ............................ 3 upgrades and patches ........ 33 watch expression ............... 76 watching variables dynamically .................. 77 e emi spectrum spreader feature . 30 ethernet cables ................ 45, 65 ethernet connections ....... 45, 46 ethernet cable ................... 65 steps .................................. 45 f features .................................... 1 flash memory liefetime write cycles ........ 31 front panel bezel dimensions 62 h headers demonstration board h1 .................................. 74 h2 .................................. 74 jp1 ..................................... 25 i i/o pinout .............................. 18 intellicom features software demonstration . 11 introduction ......................... 1 introduction ............................. 1 ip addresses .......................... 50 how to set .......................... 49 how to set pc ip address .. 50 j jumper configurations ..... 57, 58 demonstration board ........ 74 jp1 (rs-485 bias and termina- tion resistors) ................ 25 jp1 (sram size) .............. 58 jp2 (flash memory bank select) ............................ 28 jp2 (flash memory size) .... 58 jp3 (flash memory size) .... 58
82 intellicom (op6600/op6700) jumper configurations (cont?d) jp4 (digital input pull-up/pull- down resistors) ..............58 jp5 (flash memory bank select) ............................58 jp6 (rs-485 bias and termina- tion resistors) .................58 jp7 (rs-232/rs-485 select) ........................................58 jumper locations ....................57 k keypad disassembling from bezel ..61 keypad controls function calls .....................39 keyconfig ......................39 keyget ...........................40 keyinit ............................40 keypaddef .....................40 keyprocess .....................39 keypad insert .........................60 changing ............................60 keypad matrix ........................39 m memory .................................28 bios ..................................28 flash eprom configuration for different sizes ..........28 sram configuration for different sizes ................28 models .....................................2 op6600 ................................2 op6700 ................................2 o op6600 ....................................2 op6700 ....................................2 outer casing removal ................................8 p pinout ethernet port ......................18 i/o ......................................18 rj-12 connector .................18 rj-45 connector .................18 serial communication ........18 plastic casing .............62, 63, 65 assembly ......................64, 65 attaching conduit ...............65 ethernet cable ....................65 mounting ...........................65 mounting brackets .............64 splash-resistant mounting ..64 power management ...............67 power supplies .......................67 backup battery board ........68 battery backup ...................68 battery backup circuit ........68 battery life .........................68 chip select circuit ...............71 switching voltage regulator 67 vram switch ...................69 power-up demonstration program .....10 programming flash vs. ram ...................31 programming cable ........3, 12 programming port ..............26 programming cable prog connector ...............27 r reset ...................................9, 12 reset generator ...................70 rs-232 ..................................23 rs-485 ..................................23 termination and bias resistors 25 rs-485 network ....................24 running tcp/ip sample pro- grams .............................47 s sample programs ...................34 cofterma.c .................34 demobrd1.c .....34, 75, 76 demobrd2.c ...........34, 77 demobrd3.c ...........34, 78 how to run .........................73 how to set ip address .........49 httpdemo.c .................34 icom232.c .......................34 icom485.c .......................34 icom5wire.c ................34 icomdemo.c ...........11, 34 icomio.c ........................34 keylcd.c .......................34 mboxdemo.c ...............35 music.c ..........................35 music2.c ........................35 pingme.c ........................51 pong.c ............................15 power-up demonstration program .........................10 remote1.c .....................35 running tcp/ip sample programs .......................47 rxsample.c ..................51 samples\icom\ windows directory ...35 smtpdemo.c .................35 speaker.c .....................35 ssi3.c ...............................51 static.c .........................51 tcp/ip ...............................47 tcp_respond.c ............35 tcp_send.c ...................35 using pcrespond ..........35 using pcsend ..................35 serial communication ......20, 38 function calls serb485rx .....................38 serb485tx .....................38 sermode .........................38 programming port ..............26 rs-232 description ............23 rs-232/rs-485 options ...........................20, 21, 22 rs-485 description ............23 rs-485 network ..........23, 24 common power supply ..23 rs-485 termination and bias resistors .........................25 serial communication pinout .18 software .................................36 libraries icom.lib .....................36 packet.lib ................38 rs232.lib .....................38 tcpip.lib .....................36 speaker ..................................29 output characteristics .........29 speaker controls function calls .....................44 spkrout ..........................44 specifications .........................53 electrical ............................55 front panel bezel dimen- sions ..............................62 mechanical dimensions intellicom board ............54 outer casing dimensions ....63 temperature ........................55
user?s manual 83 spectrum spreader ................. 30 splash-resistant mounting ..... 64 subsystems ............................ 18 t tcp/ip connections .. 45, 46, 48 10base-t ........................... 47 10base-t ethernet card .... 45 additional resources .......... 52 ethernet cable ................... 65 ethernet cables .................. 47 ethernet hub ...................... 45 ip addresses ....................... 47 steps .................................. 45 template keypad insert ..................... 60 tool kit ................................... 3 ac adapter .......................... 3 demonstration board .......... 3 dynamic c software ........... 3 programming cable ............. 3 software ............................... 3 user?s manual ..................... 3 wire assembly ..................... 3 u usb/serial port converter ..... 12 dynamic c settings ........... 14 v vacuum fluorescent display 2, 29 changing pcb configura- tion ................................ 29
84 intellicom (op6600/op6700)
user?s manual 85 s chematics 090-0095 intellicom schematic www.rabbit.com/documentation/schemat/090-0095.pdf 090-0042 demonstration board schematic www.rabbit.com/documentation/schemat/090-0042.pdf 090-0128 programming cable schematic www.rabbit.com/documentation/schemat/090-0128.pdf you may use the url information provided above to access the latest schematics directly.


▲Up To Search▲   

 
Price & Availability of 101-0412

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X